//
//  VVCommon.swift
//  Weibo
//
//  Created by 王惠平 on 2017/3/30.
//  Copyright © 2017年 Will Wang. All rights reserved.
//

import UIKit

//切换根视图控制器的通知名
let SwitchRootVCNotification = "SwitchRootVCNotification"

//首页cell的重用标记
let Homecellid = "Homecellid"

//首页配图cell的重用标记
let HomePictureViewCellIdentifer = "HomePictureViewCellIdentifer"

//首页子控制之间间距
let HomeCellMargin: CGFloat = 10

//发微博配图cell的重用标记
let ComposePictureViewCellIdentifier = "ComposePictureViewCellIdentifier"

//点击表情按钮的通知名
let DidSelectedEmoitconButtonNoti = "DidSelectedEmoitconButtonNoti"

//点击删除标签的通知名
let DidSelectedDeleteEmoticonNoti = "DidSelectedDeleteEmoticonNoti"


//表情视图的cell的重用标记
let EmoticonViewCellIdentifier = "EmoticonViewCellIdentifier"

//获取当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width

//获取当前屏幕的高度
let ScreenHeight = UIScreen.main.bounds.size.height

//全局函数创建随机颜色
func RandomColor() ->UIColor {
    
    let red = CGFloat(arc4random_uniform(256)) / 255.0
    
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1.0)
    
}
